CVS update: php3/functions
| From: | jim | Date: | Sat, 26 Jun 1999 23:04:26 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-7609@lists.php.net to get a copy of this message | ||
Date: Saturday June 26, 1999 @ 19:04
Author: jim
Update of /repository/php3/functions
In directory php:/tmp/cvs-serv11458/functions
Modified Files:
posix.c
Log Message:
Fix problem when getpgid is missing, and fix obvious typo for getsid.
Index: php3/functions/posix.c
diff -u php3/functions/posix.c:1.4 php3/functions/posix.c:1.5
--- php3/functions/posix.c:1.4 Tue Jun 22 06:23:32 1999
+++ php3/functions/posix.c Sat Jun 26 19:04:26 1999
@@ -56,7 +56,7 @@
{"posix_getppid", php3_posix_getppid, NULL},
{"posix_getpgrp", php3_posix_getpgrp, NULL},
{"posix_getpgid", php3_posix_getpgid, NULL},
- {"posix_getsid", php3_posix_getpgid, NULL},
+ {"posix_getsid", php3_posix_getsid, NULL},
{"posix_getuid", php3_posix_getuid, NULL},
{"posix_getgid", php3_posix_getgid, NULL},
@@ -146,6 +146,7 @@
Get the process group id of the specified process */
void php3_posix_getpgid(INTERNAL_FUNCTION_PARAMETERS)
{
+#if HAVE_GETPGID
pid_t pgid;
pval *pid;
@@ -164,6 +165,9 @@
return_value->type= IS_LONG;
return_value->value.lval = pgid;
+#else
+ RETURN_FALSE;
+#endif
}
/* }}} */