ni_suspect: allow to check for different output styles (shell, xml, ...)

Signed-off-by: Olaf Kirch <okir@suse.de>
syslog output: default output mode to NI_PRINTABLE_NOCONTROL

Signed-off-by: Olaf Kirch <okir@suse.de>
When a process object is deleted on the master, the agent will now kill the corresponding local process

In the process, fixed a segfault in the notify_exit code when we were trying to upload exit status
to the master when the process object had been deleted.

Added a test case for this.

Signed-off-by: Olaf Kirch <okir@suse.de>
Silencing server warning "destroying container object XXX still owned by other container YYY"

Signed-off-by: Olaf Kirch <okir@suse.de>
Fix a problem with setting up a pty: we should use setsid to become group leader

Signed-off-by: Olaf Kirch <okir@suse.de>
selftest/verify-tty: be a bit more verbose when ttyname test fails

Signed-off-by: Olaf Kirch <okir@suse.de>
testbus-client: Turned "spurious signal ProcessXYZ.exited()" warning into a debug message

Signed-off-by: Olaf Kirch <okir@suse.de>
ni_testbus_process_destroy: clear the proc->process member after deleting it

Signed-off-by: Olaf Kirch <okir@suse.de>
Fix a long-standing race condition in ni_socket_wait

We need to check POLLIN before POLLHUP, else we end up discarding
pending input.

Signed-off-by: Olaf Kirch <okir@suse.de>
in ni_process_buffer, remember a "nickname" on what this buffer represents (stdin/out/err)

Signed-off-by: Olaf Kirch <okir@suse.de>
ni_process: when we fail to set up the tty, reset the stdio process buffers, don't nuke them completely

Signed-off-by: Olaf Kirch <okir@suse.de>
ni_process: when attaching a regular file to a proc's stdin, just reset the slave_fd, not the entire buffer

Signed-off-by: Olaf Kirch <okir@suse.de>
ni_process: get rid of an irritating warning in ni_process_buffer_attach_parent

Signed-off-by: Olaf Kirch <okir@suse.de>
Rename ni_process_attach_input_path -> ni_process_attach_input_regular_file

Signed-off-by: Olaf Kirch <okir@suse.de>
Implement async waiting for processes

This includes server-side support for a new exit-info property in the Process interface,
as well as a new "wait-command" option in testbus-client.

Signed-off-by: Olaf Kirch <okir@suse.de>
testbus-client: share common code between run-command and wait-command

Signed-off-by: Olaf Kirch <okir@suse.de>
selftest/verify-runnable: improve status reporting/checking

Signed-off-by: Olaf Kirch <okir@suse.de>