gopkg.in/essentialkaos/ek.v3@v3.5.1/signal/signal_windows.go (about)

     1  // +build !linux, !darwin, windows
     2  
     3  package signal
     4  
     5  // ////////////////////////////////////////////////////////////////////////////////// //
     6  //                                                                                    //
     7  //                     Copyright (c) 2009-2016 Essential Kaos                         //
     8  //      Essential Kaos Open Source License <http://essentialkaos.com/ekol?en>         //
     9  //                                                                                    //
    10  // ////////////////////////////////////////////////////////////////////////////////// //
    11  
    12  const (
    13  	ABRT   = 0
    14  	ALRM   = 0
    15  	BUS    = 0
    16  	CHLD   = 0
    17  	CONT   = 0
    18  	FPE    = 0
    19  	HUP    = 0
    20  	ILL    = 0
    21  	INT    = 0
    22  	IO     = 0
    23  	IOT    = 0
    24  	KILL   = 0
    25  	PIPE   = 0
    26  	PROF   = 0
    27  	QUIT   = 0
    28  	SEGV   = 0
    29  	STOP   = 0
    30  	SYS    = 0
    31  	TERM   = 0
    32  	TRAP   = 0
    33  	TSTP   = 0
    34  	TTIN   = 0
    35  	TTOU   = 0
    36  	URG    = 0
    37  	USR1   = 0
    38  	USR2   = 0
    39  	VTALRM = 0
    40  	WINCH  = 0
    41  	XCPU   = 0
    42  	XFSZ   = 0
    43  )
    44  
    45  // ////////////////////////////////////////////////////////////////////////////////// //
    46  
    47  // Send send given signal to process
    48  func Send(pid int, signal int) error {
    49  	return nil
    50  }
    51  
    52  // ////////////////////////////////////////////////////////////////////////////////// //
    53  
    54  // Handlers is map signal->handler
    55  type Handlers map[int]func()
    56  
    57  // ////////////////////////////////////////////////////////////////////////////////// //
    58  
    59  // Track catch signal and execute handler for this signal
    60  func (h Handlers) Track() {}
    61  
    62  // TrackAsync catch signal and execute async handler for this signal
    63  func (h Handlers) TrackAsync() {}
    64  
    65  // ////////////////////////////////////////////////////////////////////////////////// //