From adcabcc125094dae8fe1b62dca267e3fa302907d Mon Sep 17 00:00:00 2001 From: Bob Weinand Date: Thu, 17 Sep 2015 22:52:55 +0200 Subject: Add # delimiter to phpdbg commands --- sapi/phpdbg/phpdbg.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sapi/phpdbg/phpdbg.c') diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c index a8247844c8..2d3a97a1a8 100644 --- a/sapi/phpdbg/phpdbg.c +++ b/sapi/phpdbg/phpdbg.c @@ -1244,6 +1244,11 @@ void phpdbg_signal_handler(int sig, siginfo_t *info, void *context) /* {{{ */ } /* }}} */ #endif +void phpdbg_sighup_handler(int sig) /* {{{ */ +{ + exit(0); +} /* }}} */ + void *phpdbg_malloc_wrapper(size_t size ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) /* {{{ */ { return _zend_mm_alloc(zend_mm_get_heap(), size ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LINE_ORIG_RELAY_CC); @@ -1613,6 +1618,11 @@ phpdbg_main: /* set remote flag to stop service shutting down upon quit */ remote = 1; +#ifndef _WIN32 + } else { + + signal(SIGHUP, phpdbg_sighup_handler); +#endif } mm_heap = zend_mm_get_heap(); -- cgit v1.2.1