Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.1
mouseemu
mouseemu.write_error.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mouseemu.write_error.patch of Package mouseemu
#! /bin/sh /usr/share/dpatch/dpatch-run ## write_error.dpatch by <agx@sigxcpu.org> ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Fix write error detection ## @DPATCH@ --- mouseemu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/mouseemu.c +++ b/mouseemu.c @@ -95,7 +95,7 @@ static void send_event(int fd, int type, static void passthrough(int fd, struct input_event event) { - if (write(fd, &event, sizeof(event)) < sizeof(event)) + if (write(fd, &event, sizeof(event)) <= 0) perror("passthrough error"); }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor