Skip to content

Commit

Permalink
win32 signal 测试
Browse files Browse the repository at this point in the history
  • Loading branch information
jilieryuyi committed Oct 15, 2017
1 parent ffc8b92 commit cc42fb1
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions wing_process.c
Original file line number Diff line number Diff line change
Expand Up @@ -430,21 +430,21 @@ ZEND_METHOD(wing_process, getCurrentProcessId)
{
ZVAL_LONG(return_value, wing_get_process_id());
}

ZEND_METHOD(wing_process, signal)
{
int sig = -1;
zval* callback;

zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lz", &sig, &callback);

#ifdef PHP_WIN32

#else

#endif
RETURN_TRUE
}
//
//ZEND_METHOD(wing_process, signal)
//{
// int sig = -1;
// zval* callback;
//
// zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lz", &sig, &callback);
//
// #ifdef PHP_WIN32
//
// #else
//
// #endif
// RETURN_TRUE
//}


static zend_function_entry wing_process_methods[] =
Expand All @@ -459,7 +459,7 @@ static zend_function_entry wing_process_methods[] =
ZEND_ME(wing_process, kill, NULL, ZEND_ACC_PUBLIC)
ZEND_ME(wing_process, getMemory, NULL, ZEND_ACC_PUBLIC)
ZEND_ME(wing_process, getCurrentProcessId, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
ZEND_ME(wing_process, signal, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
//ZEND_ME(wing_process, signal, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
{
NULL,NULL,NULL
}
Expand Down

0 comments on commit cc42fb1

Please sign in to comment.