Changeset 711481177da708b723664b1e4dafaad8307f49d6

Show
Ignore:
Timestamp:
02/23/08 22:34:48 (7 months ago)
Author:
Pierre d'Herbemont <pdherbemont@videolan.org>
git-committer:
Pierre d'Herbemont <pdherbemont@videolan.org> 1203802488 +0000
git-parent:

[b026a42b75599d9cce82bca15302e2831c24c910]

git-author:
Pierre d'Herbemont <pdherbemont@videolan.org> 1203802488 +0000
Message:

vlc.c: Attempt to kill VLC again if Ctrl-C is hit again when the abort timeout is ellapsed. It allows to abort VLC after the first abort timeout.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/vlc.c

    rb026a42 r7114811  
    275275 
    276276        pthread_setcancelstate (PTHREAD_CANCEL_DISABLE, &state); 
    277         if (abort_time == 0
     277        if (abort_time == 0 || time (NULL) > abort_time
    278278        { 
    279279            time (&abort_time); 
     
    281281 
    282282            fprintf (stderr, "signal %d received, terminating vlc - do it " 
    283                             "again in case it gets stuck\n", i_signal); 
     283                            "again quickly in case it gets stuck\n", i_signal); 
    284284 
    285285            /* Acknowledge the signal received */ 
    286286            Kill (); 
    287287        } 
    288         else 
    289         if (time (NULL) <= abort_time) 
     288        else /* time (NULL) <= abort_time */ 
    290289        { 
    291290            /* If user asks again more than 2 seconds later, die badly */