# NWDSLoginEx() not surviving program exit

**URL:** <https://forums.suse.com/t/nwdsloginex-not-surviving-program-exit/21738>\
**Category:** SLE Software Developer Kit (SDK)\
**Created:** [February 22, 2010, 3:16pm UTC](https://forums.suse.com/t/nwdsloginex-not-surviving-program-exit/21738 "2010-02-22T15:16:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![System1](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@System1](https://forums.suse.com/u/System1)\
**Post date:** [February 22, 2010, 3:16pm UTC](https://forums.suse.com/t/nwdsloginex-not-surviving-program-exit/21738/1 "2010-02-22T15:16:04Z")

</div>

Hello everyone,

SLES10SP3/OES2SP2, SLED11.

I have a Linux program using the Novell X-Plat APIs. It does a  
NWDSLoginEx() fine, and I can call other X-Plat functions within this  
program and those functions work fine too. I do not do any logouts or  
free connections or free contexts or etc. at the end of this program.

So, I would expect to see a logged in connection with  
/opt/novell/ncl/bin/nwconnections after my program exits, but their are  
no connections listed.

I need my logged in connection to survive my program’s termination. Any  
ideas how to do this?

If I do a /opt/novell/ncl/bin/nwlogin and log in successfully, then I  
see that with /opt/novell/ncl/bin/nwconnections that the connection  
persists after the /opt/novell/ncl/bin/nwlogin exits. I need my program  
to do the same thing.

Thanks for any help or suggestions!

## Joe

## – joeflowers

joeflowers’s Profile: [http://forums.novell.com/member.php?userid=5949](http://forums.novell.com/member.php?userid=5949)  
View this thread: [http://forums.novell.com/showthread.php?t=402624](http://forums.novell.com/showthread.php?t=402624)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [February 27, 2010, 12:36pm UTC](https://forums.suse.com/t/nwdsloginex-not-surviving-program-exit/21738/2 "2010-02-27T12:36:02Z")

</div>

Here is a fix for this problem:

export XPLAT\_USE\_XTIER=0

* * *

## – joeflowers

joeflowers’s Profile: [http://forums.novell.com/member.php?userid=5949](http://forums.novell.com/member.php?userid=5949)  
View this thread: [http://forums.novell.com/showthread.php?t=402624](http://forums.novell.com/showthread.php?t=402624)
