root/opal/win32/opal_process.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. waitpid
  2. kill

   1 /*
   2  Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
   3                          University Research and Technology
   4                          Corporation.  All rights reserved.
   5  Copyright (c) 2004-2014 The University of Tennessee and The University
   6                          of Tennessee Research Foundation.  All rights
   7                          reserved.
   8  Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
   9                          University of Stuttgart.  All rights reserved.
  10  Copyright (c) 2004-2005 The Regents of the University of California.
  11                          All rights reserved.
  12  $COPYRIGHT$
  13 
  14  Additional copyrights may follow
  15 
  16  $HEADER$
  17  */
  18 
  19 #include "opal_config.h"
  20 #include "win32/opal_process.h"
  21 
  22 pid_t waitpid(pid_t pid, int *status, int options) {
  23    return _cwait(status, pid, _WAIT_CHILD);
  24 }
  25 
  26 int kill(pid_t pid, int sig) {
  27    /* XXX fill this in */
  28    /* Need to connect to the child process
  29       Then raise the signal since Windows doesn;t
  30       have the ability to 'send a signal' to a
  31       process, a la the kill command in UNIX
  32 
  33       MSVC functions to look at:
  34        - OpenProcess
  35        - TerminateProcess
  36        - raise
  37    */
  38 
  39    return 0;
  40 }

/* [<][>][^][v][top][bottom][index][help] */