common: Allow telling pipe not to touch stderr

This should be used in test-server, so that people debugging can
see cockpit-bridge output on the real terminal stderr.
common: Allow telling pipe not to touch stderr

This should be used in test-server, so that people debugging can
see cockpit-bridge output on the real terminal stderr.

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
bridge: Ignore possibly fatal warnings when installing polkit agent

This is a workaround for a polkit bug, which emits a pretty strong
g_warning() when it can't install a polkit agent. We ignore this
warning, but also ignore the possibly fatal debugging abort()
here.

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
common: Include new lines in stderr output when forwarding

When forwarding stderr output to the logs, include new lines so
that the when the messages are also relayed to stderr they look
correct.

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
common: Simpler removing of signal handlers in CockpitPipeTransport

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
ws: Use 'cat' as a mock bridge in certain tests

This is simpler, faster, and makes a lot less journal and valgrind
noise.

Closes #1403
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
ws: Allow interrupting test-server for coverage purposes

For gcc gcov coverage to work the process has to exit cleanly.
So handle SIGINT in cockpit-bridge and test-server, and exit
cleanly in that case. This allows use of tools like 'git coverage'

Closes #1404
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>