Change keyboard interrupt to return 130 instead of 1
Change keyboard interrupt to return 130 instead of 1

Summary:The expected return code for a program that has
been sent a signal in most shells is 128 + <signal num>.
So, we should send 128 + SIGINT when we get a ctrl-c.

This change updates the KeyboardInterrupt handler to
correctly return a code of 130.

Test Plan:Test run output:

Without buckd:

jcg@jcg-mbp: ~/Source/test/bb
$ buck build //apps/myapp:app
Not using buckd because NO_BUCKD is set.
^C
jcg@jcg-mbp: ~/Source/test/bb
$ echo $?
130

With buckd:

$ buck build //apps/myapp:app
[-] PROCESSING BUCK FILES...FINISHED 0.2s [100%]
[+] DOWNLOADING... (0.00 B/S, TOTAL: 0.00 B, 0 Artifacts)
[+] BUILDING...0.4s [47%] (2/9 JOBS, 2 UPDATED, 22.2% CACHE MISS)
 |=> IDLE
 |=> //apps/myapp:app#aapt_package...  0.1s (running javac[0.0s])
 |=> //java/com/example/activity:activity#dummy_r_dot_java...  0.1s (running javac[0.1s])
 |=> IDLE
 |=> IDLE
 |=> IDLE
 |=> IDLE
 |=> IDLE
^C
jcg@jcg-mbp: ~/Source/test/bb
$ echo $?
130

Reviewed By: bhamiltoncx

fb-gh-sync-id: 19889f4
shipit-source-id: 19889f4

brettwooldridge/buck,darkforestzero/buck,rmaz/buck,grumpyjames/buck,nguyentruongtho/buck,davido/buck,Addepar/buck,ilya-klyuchnikov/buck,JoelMarcey/buck,davido/buck,vschs007/buck,davido/buck,nguyentruongtho/buck,raviagarwal7/buck,SeleniumHQ/buck,bocon13/buck,sdwilsh/buck,zhan-xiong/buck,SeleniumHQ/buck,shybovycha/buck,illicitonion/buck,JoelMarcey/buck,zhan-xiong/buck,sdwilsh/buck,zpao/buck,OkBuilds/buck,darkforestzero/buck,facebook/buck,shybovycha/buck,nguyentruongtho/buck,SeleniumHQ/buck,sdwilsh/buck,shybovycha/buck,vschs007/buck,zhan-xiong/buck,clonetwin26/buck,rmaz/buck,shs96c/buck,marcinkwiatkowski/buck,clonetwin26/buck,shybovycha/buck,SeleniumHQ/buck,kageiit/buck,nguyentruongtho/buck,illicitonion/buck,LegNeato/buck,davido/buck,bocon13/buck,clonetwin26/buck,Addepar/buck,sdwilsh/buck,shs96c/buck,davido/buck,ilya-klyuchnikov/buck,daedric/buck,brettwooldridge/buck,vschs007/buck,illicitonion/buck,grumpyjames/buck,Addepar/buck,marcinkwiatkowski/buck,ilya-klyuchnikov/buck,shybovycha/buck,janicduplessis/buck,darkforestzero/buck,ilya-klyuchnikov/buck,rmaz/buck,vschs007/buck,janicduplessis/buck,shs96c/buck,facebook/buck,zpao/buck,shs96c/buck,facebook/buck,rmaz/buck,Dominator008/buck,marcinkwiatkowski/buck,brettwooldridge/buck,romanoid/buck,shs96c/buck,robbertvanginkel/buck,davido/buck,SeleniumHQ/buck,k21/buck,dsyang/buck,dsyang/buck,grumpyjames/buck,daedric/buck,LegNeato/buck,illicitonion/buck,SeleniumHQ/buck,janicduplessis/buck,darkforestzero/buck,vschs007/buck,davido/buck,justinmuller/buck,zpao/buck,grumpyjames/buck,dsyang/buck,justinmuller/buck,vschs007/buck,janicduplessis/buck,robbertvanginkel/buck,Addepar/buck,justinmuller/buck,zhan-xiong/buck,kageiit/buck,rmaz/buck,justinmuller/buck,daedric/buck,marcinkwiatkowski/buck,OkBuilds/buck,grumpyjames/buck,OkBuilds/buck,JoelMarcey/buck,OkBuilds/buck,LegNeato/buck,OkBuilds/buck,grumpyjames/buck,raviagarwal7/buck,brettwooldridge/buck,SeleniumHQ/buck,OkBuilds/buck,clonetwin26/buck,darkforestzero/buck,rmaz/buck,rmaz/buck,romanoid/buck,brettwooldridge/buck,darkforestzero/buck,JoelMarcey/buck,ilya-klyuchnikov/buck,shs96c/buck,LegNeato/buck,robbertvanginkel/buck,rmaz/buck,sdwilsh/buck,romanoid/buck,rmaz/buck,Dominator008/buck,daedric/buck,rmaz/buck,Dominator008/buck,romanoid/buck,robbertvanginkel/buck,daedric/buck,grumpyjames/buck,clonetwin26/buck,Addepar/buck,OkBuilds/buck,clonetwin26/buck,vschs007/buck,sdwilsh/buck,raviagarwal7/buck,ilya-klyuchnikov/buck,facebook/buck,shybovycha/buck,Dominator008/buck,davido/buck,romanoid/buck,zhan-xiong/buck,bocon13/buck,raviagarwal7/buck,Addepar/buck,OkBuilds/buck,darkforestzero/buck,robbertvanginkel/buck,ilya-klyuchnikov/buck,janicduplessis/buck,zpao/buck,Dominator008/buck,brettwooldridge/buck,romanoid/buck,robbertvanginkel/buck,kageiit/buck,dsyang/buck,raviagarwal7/buck,dsyang/buck,JoelMarcey/buck,ilya-klyuchnikov/buck,bocon13/buck,robbertvanginkel/buck,kageiit/buck,dsyang/buck,marcinkwiatkowski/buck,JoelMarcey/buck,janicduplessis/buck,nguyentruongtho/buck,marcinkwiatkowski/buck,zpao/buck,clonetwin26/buck,zpao/buck,clonetwin26/buck,zhan-xiong/buck,justinmuller/buck,justinmuller/buck,justinmuller/buck,dsyang/buck,shs96c/buck,bocon13/buck,LegNeato/buck,dsyang/buck,JoelMarcey/buck,SeleniumHQ/buck,LegNeato/buck,janicduplessis/buck,illicitonion/buck,vschs007/buck,daedric/buck,shs96c/buck,clonetwin26/buck,illicitonion/buck,brettwooldridge/buck,darkforestzero/buck,facebook/buck,k21/buck,OkBuilds/buck,vschs007/buck,k21/buck,robbertvanginkel/buck,daedric/buck,vschs007/buck,LegNeato/buck,janicduplessis/buck,shybovycha/buck,clonetwin26/buck,Dominator008/buck,nguyentruongtho/buck,daedric/buck,zhan-xiong/buck,romanoid/buck,bocon13/buck,k21/buck,shs96c/buck,marcinkwiatkowski/buck,Dominator008/buck,Dominator008/buck,JoelMarcey/buck,ilya-klyuchnikov/buck,SeleniumHQ/buck,k21/buck,sdwilsh/buck,daedric/buck,LegNeato/buck,shybovycha/buck,Addepar/buck,rmaz/buck,raviagarwal7/buck,sdwilsh/buck,SeleniumHQ/buck,OkBuilds/buck,raviagarwal7/buck,justinmuller/buck,Dominator008/buck,dsyang/buck,justinmuller/buck,daedric/buck,darkforestzero/buck,darkforestzero/buck,k21/buck,raviagarwal7/buck,brettwooldridge/buck,marcinkwiatkowski/buck,vschs007/buck,bocon13/buck,robbertvanginkel/buck,raviagarwal7/buck,grumpyjames/buck,kageiit/buck,justinmuller/buck,SeleniumHQ/buck,bocon13/buck,zpao/buck,sdwilsh/buck,davido/buck,kageiit/buck,ilya-klyuchnikov/buck,dsyang/buck,zhan-xiong/buck,bocon13/buck,SeleniumHQ/buck,grumpyjames/buck,bocon13/buck,dsyang/buck,brettwooldridge/buck,marcinkwiatkowski/buck,shybovycha/buck,raviagarwal7/buck,sdwilsh/buck,marcinkwiatkowski/buck,clonetwin26/buck,k21/buck,kageiit/buck,nguyentruongtho/buck,illicitonion/buck,raviagarwal7/buck,k21/buck,zhan-xiong/buck,illicitonion/buck,janicduplessis/buck,romanoid/buck,janicduplessis/buck,shybovycha/buck,JoelMarcey/buck,Addepar/buck,shs96c/buck,robbertvanginkel/buck,grumpyjames/buck,dsyang/buck,illicitonion/buck,zhan-xiong/buck,JoelMarcey/buck,dsyang/buck,bocon13/buck,brettwooldridge/buck,illicitonion/buck,LegNeato/buck,OkBuilds/buck,romanoid/buck,vschs007/buck,illicitonion/buck,justinmuller/buck,sdwilsh/buck,k21/buck,Addepar/buck,ilya-klyuchnikov/buck,brettwooldridge/buck,marcinkwiatkowski/buck,OkBuilds/buck,illicitonion/buck,janicduplessis/buck,shybovycha/buck,k21/buck,LegNeato/buck,darkforestzero/buck,Dominator008/buck,Dominator008/buck,k21/buck,vschs007/buck,LegNeato/buck,shybovycha/buck,davido/buck,davido/buck,facebook/buck,davido/buck,shybovycha/buck,justinmuller/buck,marcinkwiatkowski/buck,Addepar/buck,SeleniumHQ/buck,romanoid/buck,romanoid/buck,facebook/buck,ilya-klyuchnikov/buck,brettwooldridge/buck,brettwooldridge/buck,Addepar/buck,shs96c/buck,clonetwin26/buck,raviagarwal7/buck,justinmuller/buck,ilya-klyuchnikov/buck,k21/buck,robbertvanginkel/buck,LegNeato/buck,k21/buck,shs96c/buck,janicduplessis/buck,daedric/buck,bocon13/buck,JoelMarcey/buck,zhan-xiong/buck,OkBuilds/buck,shs96c/buck,robbertvanginkel/buck,daedric/buck,rmaz/buck,davido/buck,raviagarwal7/buck,clonetwin26/buck,romanoid/buck,grumpyjames/buck,Addepar/buck,daedric/buck,sdwilsh/buck,darkforestzero/buck,Addepar/buck,illicitonion/buck,zhan-xiong/buck,grumpyjames/buck,JoelMarcey/buck,zhan-xiong/buck,sdwilsh/buck,JoelMarcey/buck,Dominator008/buck,rmaz/buck,romanoid/buck,darkforestzero/buck,robbertvanginkel/buck,LegNeato/buck,marcinkwiatkowski/buck