Skip to content

hotplug_callback bug #17

@wzw88486969

Description

@wzw88486969
int hotplug_callback(struct libusb_context *ctx __attribute__((unused)),
			struct libusb_device *dev __attribute__((unused)),
			libusb_hotplug_event envet __attribute__((unused)),
			void *user_data __attribute__((unused))) {
	printf("Hotplug event\n");

	kill(0, SIGINT);
	return 0;
}

Suggest replacing the kill 0 line with another one. I have integrated it into the Android system. When plugging in or unplugging peripherals, it may send a SIGINT signal to the init 0 process, causing system issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions