CVS update: php3/functions

From: Date: Sun, 27 Jun 1999 17:39:11 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-7628@lists.php.net to get a copy of this message
Date: Sunday June 27, 1999 @ 13:39 Author: jim Update of /repository/php3/functions In directory php:/tmp/cvs-serv25010/functions Modified Files: posix.c Log Message: Fix broken posix_getsid, too. Index: php3/functions/posix.c diff -u php3/functions/posix.c:1.5 php3/functions/posix.c:1.6 --- php3/functions/posix.c:1.5 Sat Jun 26 19:04:26 1999 +++ php3/functions/posix.c Sun Jun 27 13:39:11 1999 @@ -175,6 +175,7 @@ get process group ID of session leader */ void php3_posix_getsid(INTERNAL_FUNCTION_PARAMETERS) { +#if HAVE_GETSID pid_t sid; pval *pid; @@ -183,7 +184,7 @@ } convert_to_long(pid); - sid = getpgid(pid->value.lval); + sid = getsid(pid->value.lval); if (sid < 0) { php3_error(E_WARNING, "posix_getsid(%d) failed with '%s'", pid->value.lval, @@ -193,6 +194,9 @@ return_value->type= IS_LONG; return_value->value.lval = sid; +#else + RETURN_FALSE; +#endif } /* }}} */

« previous php.dev (#7628) next »