403Webshell
Server IP : 88.99.149.37  /  Your IP : 216.73.216.141
Web Server : nginx/1.31.2
System : Linux server-88-99-149-37 6.12.0-124.56.5.el10_1.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 15 06:12:08 EDT 2026 x86_64
User : muralimurth ( 1015)
PHP Version : 8.4.23
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/thread-self/root/proc/1/root/usr/include/dovecot/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/thread-self/root/proc/1/root/usr/include/dovecot/test-subprocess.h
#ifndef TEST_SUBPROCESS_H
#define TEST_SUBPROCESS_H

#define TEST_SIGNALS_DEFAULT_TIMEOUT_MS 10000

/* Fork a sub-process for this test. The func is the main function for the
   forked sub-process. The provided context is passed to the provided function.
   When continue_test=FALSE, the test is ended immediately in the sub-process,
   otherwise, the test continues and its result is used to set the exit code
   when the process ends gracefully. */
pid_t ATTR_NOWARN_UNUSED_RESULT
test_subprocess_fork(int (*func)(void *), void *context,
		     bool continue_test);
#define test_subprocess_fork(func, context, continue_test) \
	test_subprocess_fork( \
		(int(*)(void*))func, \
		(TRUE ? context : \
		 CALLBACK_TYPECHECK(func, int(*)(typeof(context)))), \
		continue_test)

/* Wait for all sub-processes to terminate voluntarily within the provided
   timeout. */
void test_subprocess_wait_all(unsigned int timeout_secs);
/* Kill all sub-processes initially with SIGTERM and subsequently with SIGKILL
   when any sub-processes are not terminated gracefully within the provided
   timeout. */
void test_subprocess_kill_all(unsigned int timeout_secs);

bool test_subprocess_is_child(void);

/* Send a notification signal (SIGHUP) to the given PID */
void test_subprocess_notify_signal_send(int signo, pid_t pid);
/* Send a notification signal to the parent process. */
void test_subprocess_notify_signal_send_parent(int signo);
/* Send a notification signal to all the subprocesses. */
void test_subprocess_notify_signal_all(int signo);
/* Reset any previously sent notification signals. */
void test_subprocess_notify_signal_reset(int signo);
/* Wait until a notification signal is sent, or return immediately if it was
   already sent. test_subprocess_notify_signal_reset() should be called before
   this to make sure it's not returning due to a previously sent signal.
   If the timeout is reached, i_fatal() is called. */
void test_subprocess_notify_signal_wait(int signo, unsigned int timeout_msecs);

void test_subprocesses_init(void);

#endif

Youez - 2016 - github.com/yon3zu
LinuXploit