Changeset 191

Show
Ignore:
Timestamp:
12/05/07 15:07:16 (1 year ago)
Author:
conrad
Message:

apply patch from Jonas Kölker fixing a segfault in handling of delete atoms
when xsel is running as a daemon (holding the selection).
When it receives a delete atom, the daemon now simply exits.

This patch fixes a segfault:
$ echo "hello, world" | ./xsel -i && ./xsel -d
Segmentation fault

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • xsel/trunk/xsel.c

    r188 r191  
    591591                        event.xselection.property, target, length); 
    592592 
    593         if (target == incr_atom) { 
     593        if (request_target == delete_atom && value == NULL) { 
     594          keep_waiting = False; 
     595        } else if (target == incr_atom) { 
    594596          /* Handle INCR transfers */ 
    595597          retval = wait_incr_selection (selection, &event.xselection,