mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
- execve() no longer directly calls exit(), but a function which can be
replaced by the user. If that function __execve_exit() does not call exit but just returns to the caller without doing anything, execve() will return the caller with the return code of the RunCommand() function. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@15122 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: dos.h,v 1.23 2006-08-02 08:00:30 obarthel Exp $
|
||||
* $Id: dos.h,v 1.24 2006-08-06 08:15:42 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -527,6 +527,19 @@ extern void __execve_environ_exit(char * const envp[]);
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
/*
|
||||
* The __execve_exit() function is called by execve() if the command
|
||||
* executed correctly and control should be returned to the shell. The
|
||||
* default behaviour is to eventually call exit(). You can, however,
|
||||
* replace __execve_exit() with a stub which does nothing at all. In
|
||||
* that case the execve() function will return control to the caller
|
||||
* instead.
|
||||
*/
|
||||
|
||||
extern void __execve_exit(int return_code);
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
Reference in New Issue
Block a user