aboutsummaryrefslogtreecommitdiffstats
path: root/guts/fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'guts/fork.c')
-rw-r--r--guts/fork.c27
1 files changed, 11 insertions, 16 deletions
diff --git a/guts/fork.c b/guts/fork.c
index b7fd239..76cac6f 100644
--- a/guts/fork.c
+++ b/guts/fork.c
@@ -6,23 +6,18 @@
* wrap_fork(void) {
* int rc = -1;
*/
- if (real_fork) {
- rc = real_fork();
- /* special case: we may want to enable or disable
- * pseudo in the child process
- */
- if (rc == 0) {
- if (!pseudo_get_value("PSEUDO_RELOADED")) {
- pseudo_setupenv();
- pseudo_reinit_libpseudo();
- } else {
- pseudo_setupenv();
- pseudo_dropenv();
- }
+ rc = real_fork();
+ /* special case: we may want to enable or disable
+ * pseudo in the child process
+ */
+ if (rc == 0) {
+ if (!pseudo_get_value("PSEUDO_RELOADED")) {
+ pseudo_setupenv();
+ pseudo_reinit_libpseudo();
+ } else {
+ pseudo_setupenv();
+ pseudo_dropenv();
}
- } else {
- /* rc was initialized to the "failure" value */
- pseudo_enosys("fork");
}
/* return rc;
* }