Age | Commit message (Collapse) | Author | Files | Lines |
|
There's a problem with packets larger than 65535 bytes, I suppose this
has something to do with the length16 field in the usbmux_tcp_header.
|
|
In udev mode (-u|--udev) the return value is 0 if another instance is
already running
-x|--exit tells a running instance to exit by sending signal 3 (SIGQUIT)
-X|--force-exit tells a running instance to exit even if devices are
still connected by sending signal 15 (SIGTERM)
|
|
This reverts commit b7d4f48d7e85c43f0dd1111619acf79aba535371.
Not working as expected.
|
|
When starting up, force background operation when in udev mode and
don't error out when already running.
When disconnecting, check if there are any devices left-over, and
exit if not.
Signed-off-by: Nikias Bassen <nikias@gmx.li>
|
|
usbmux.c: In function ‘usbmux_free_device’:
usbmux.c:412: warning: ‘bytes’ may be used uninitialized in this
function
main.c: In function ‘usbmuxd_client_init_thread’:
main.c:197: warning: dereferencing pointer ‘s_req.55’ does break
strict-aliasing rules
main.c:613: note: initialized from here
main.c:944: warning: ‘j’ may be used uninitialized in this function
Signed-off-by: Nikias Bassen <nikias@gmx.li>
|
|
|
|
|
|
|
|
Signed-off-by: Nikias Bassen <nikias@gmx.li>
|
|
|
|
Default is to NOT drop the privileges as is causes permission problems
on some systems.
|
|
|
|
|
|
|
|
|
|
(see this as a workaround for systems where the usb device access is
restricted)
|
|
|
|
calling freopen (prevents compiler warnings).
|
|
Signed-off-by: Nikias Bassen <nikias@gmx.li>
|