For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > August 2007 > #42481 [Opn->Csd]: posix_setsid() return -1 on errors,not 0 or false









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #42481 [Opn->Csd]: posix_setsid() return -1 on errors,not 0 or false
rquadling@php.net

2007-08-30, 4:01 am

ID: 42481
Updated by: rquadling@php.net
Reported By: surfchen at gmail dot com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: Debian 4.1.1-21
PHP Version: Irrelevant
New Comment:

This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation
better.


Previous Comments:
------------------------------------------------------------------------

[2007-08-30 07:27:55] surfchen at gmail dot com

Description:
------------
There is a mistake here(http://www.php.net/manual/en/ref.pcntl.php) on
invoking posix_setsid(),which is return -1 on errors.

Reproduce code:
---------------
if (!posix_setsid()) {
die("could not detach from terminal");
}

Expected result:
----------------
When a error occurs,the msg"could not detach from terminal" should be
printed.But since the posix_setsid() return -1 on errors,nothing is
printed in this case.

Actual result:
--------------
nothing is printed


------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=42481&edit=1
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com