execlp retuning 0??

I’m sort of porting kterm (kanji-enabled xterm) which is
now rather outdated compared to current XF86 4.2’s xterm, but

What does it mean when execlp("/bin/sh",“sh”,NULL)
returns 0 with errno==0 ??

(shouldn’t return if overlay succeeded; should return -1 on error)

kabe

<kabe@sra-tohoku.co.jp> wrote in news:a835kk$s40$2@inn.qnx.com:

I’m sort of porting kterm (kanji-enabled xterm) which is
now rather outdated compared to current XF86 4.2’s xterm, but

What does it mean when execlp("/bin/sh",“sh”,NULL)
returns 0 with errno==0 ??

(shouldn’t return if overlay succeeded; should return -1 on error)

It shouldn’t return at all if successful…There isn’t any explict return
of 0 (there is one spot where it’s possible implicitly). Do you have a
small test case to illustrate the issue? If so, I’ll take a peek.


\

Cheers,
Adam

QNX Software Systems Ltd.
[ amallory@qnx.com ]

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <pschon@baste.magibox.net>