Branch: Tag:

2008-07-09

2008-07-09 13:29:01 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Let exit() perform an _exit() if running in a forked child.

Rev: src/builtin_functions.c:1.684
Rev: src/builtin_functions.h:1.37
Rev: src/signal_handler.c:1.334

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: builtin_functions.h,v 1.36 2008/06/29 20:36:59 marcus Exp $ + || $Id: builtin_functions.h,v 1.37 2008/07/09 13:29:01 grubba Exp $   */      #ifndef BUILTIN_EFUNS_H
71:   PMOD_EXPORT void f_allocate(INT32 args);   void f_this_object(INT32 args);   PMOD_EXPORT DECLSPEC(noreturn) void f_throw(INT32 args) ATTRIBUTE((noreturn)); + extern int in_forked_child;   PMOD_EXPORT void f_exit(INT32 args); - void f__exit(INT32 args); + void f__exit(INT32 args) ATTRIBUTE((noreturn));   PMOD_EXPORT void f_time(INT32 args);   PMOD_EXPORT void f_crypt(INT32 args);   PMOD_EXPORT void f_destruct(INT32 args);