Branch: Tag:

2001-01-19

2001-01-19 12:41:15 by Per Hedbor <ph@opera.com>

Added Process.Process

Rev: lib/modules/Process.pmod:1.31

8:   #define strerror(X) ("errno="+X)   #endif    - program create_process = __builtin.create_process; + constant create_process = __builtin.create_process;    -  + class Process + { +  inherit __builtin.create_process; +  +  void create( string|array(string) args, mapping m ) +  { +  if( stringp( args ) ) +  args = split_quoted_string( args ); +  if( m ) +  ::create( args, m ); +  else +  ::create( args ); +  } + } +    int exec(string file,string ... foo)   {    if (sizeof(file)) {
137:    return ret;   }    - object spawn(string s,object|void stdin,object|void stdout,object|void stderr, + Process spawn(string s,object|void stdin,object|void stdout,object|void stderr,    function|void cleanup, mixed ... args)   {   #if 1
152:   #endif /* __NT__||__amigaos__ */   #else    -  object pid; +  Process pid;      #if constant(fork)    pid=fork();