<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>204778</bug_id>
          
          <creation_ts>2019-12-02 18:44:10 -0800</creation_ts>
          <short_desc>run-jsc should exit with the same signal or exit status that the `jsc` shell does</short_desc>
          <delta_ts>2020-01-07 22:49:22 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=205907</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Saam Barati">saam</reporter>
          <assigned_to name="Saam Barati">saam</assigned_to>
          <cc>benjamin</cc>
    
    <cc>commit-queue</cc>
    
    <cc>fpizlo</cc>
    
    <cc>ggaren</cc>
    
    <cc>gskachkov</cc>
    
    <cc>guijemont</cc>
    
    <cc>keith_miller</cc>
    
    <cc>mark.lam</cc>
    
    <cc>msaboff</cc>
    
    <cc>rmorisset</cc>
    
    <cc>ross.kirsling</cc>
    
    <cc>ticaiolima</cc>
    
    <cc>tzagallo</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1594879</commentid>
    <comment_count>0</comment_count>
    <who name="Saam Barati">saam</who>
    <bug_when>2019-12-02 18:44:10 -0800</bug_when>
    <thetext>...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1594885</commentid>
    <comment_count>1</comment_count>
      <attachid>384677</attachid>
    <who name="Saam Barati">saam</who>
    <bug_when>2019-12-02 18:59:42 -0800</bug_when>
    <thetext>Created attachment 384677
patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1594889</commentid>
    <comment_count>2</comment_count>
      <attachid>384677</attachid>
    <who name="Keith Miller">keith_miller</who>
    <bug_when>2019-12-02 19:09:02 -0800</bug_when>
    <thetext>Comment on attachment 384677
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=384677&amp;action=review

r=me

&gt; Tools/Scripts/run-jsc:70
&gt; +        system(&quot;kill -&quot; . $signal . &quot; &quot; . $PID); # We kill ourselves with the same signal that the `jsc` process was killed with to make it look like `jsc` was directly invoked.

Beautiful!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1594897</commentid>
    <comment_count>3</comment_count>
      <attachid>384677</attachid>
    <who name="Saam Barati">saam</who>
    <bug_when>2019-12-02 20:22:40 -0800</bug_when>
    <thetext>Comment on attachment 384677
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=384677&amp;action=review

&gt;&gt; Tools/Scripts/run-jsc:70
&gt;&gt; +        system(&quot;kill -&quot; . $signal . &quot; &quot; . $PID); # We kill ourselves with the same signal that the `jsc` process was killed with to make it look like `jsc` was directly invoked.
&gt; 
&gt; Beautiful!

Thanks to your beautiful idea :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1594909</commentid>
    <comment_count>4</comment_count>
      <attachid>384677</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-12-02 21:07:22 -0800</bug_when>
    <thetext>Comment on attachment 384677
patch

Clearing flags on attachment: 384677

Committed r253024: &lt;https://trac.webkit.org/changeset/253024&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1594910</commentid>
    <comment_count>5</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-12-02 21:07:23 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1594911</commentid>
    <comment_count>6</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-12-02 21:08:18 -0800</bug_when>
    <thetext>&lt;rdar://problem/57580636&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1600055</commentid>
    <comment_count>7</comment_count>
    <who name="Ross Kirsling">ross.kirsling</who>
    <bug_when>2019-12-18 16:41:39 -0800</bug_when>
    <thetext>This patch seems to have introduced a strange result when exiting the shell.

Direct case:
&gt; λ DYLD_FRAMEWORK_PATH=./WebKitBuild/Release ./WebKitBuild/Release/jsc --useDollarVM=1
&gt; &gt;&gt;&gt; &lt;Ctrl+C&gt;
&gt;

Indirect case:
&gt; λ Tools/Scripts/run-jsc
&gt; Running 1 time(s): DYLD_FRAMEWORK_PATH=./WebKitBuild/Release ./WebKitBuild/Release/jsc --useDollarVM=1
&gt; &gt;&gt;&gt; &lt;Ctrl+C&gt;
&gt; ... I should not be here ...
&gt;

Obviously a cosmetic issue but it&apos;s weird to see every time I exit, hehe.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1603967</commentid>
    <comment_count>8</comment_count>
    <who name="Saam Barati">saam</who>
    <bug_when>2020-01-07 22:40:01 -0800</bug_when>
    <thetext>(In reply to Ross Kirsling from comment #7)
&gt; This patch seems to have introduced a strange result when exiting the shell.
&gt; 
&gt; Direct case:
&gt; &gt; λ DYLD_FRAMEWORK_PATH=./WebKitBuild/Release ./WebKitBuild/Release/jsc --useDollarVM=1
&gt; &gt; &gt;&gt;&gt; &lt;Ctrl+C&gt;
&gt; &gt;
&gt; 
&gt; Indirect case:
&gt; &gt; λ Tools/Scripts/run-jsc
&gt; &gt; Running 1 time(s): DYLD_FRAMEWORK_PATH=./WebKitBuild/Release ./WebKitBuild/Release/jsc --useDollarVM=1
&gt; &gt; &gt;&gt;&gt; &lt;Ctrl+C&gt;
&gt; &gt; ... I should not be here ...
&gt; &gt;
&gt; 
&gt; Obviously a cosmetic issue but it&apos;s weird to see every time I exit, hehe.

yeah, that&apos;s annoying...

Let me remove that.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>384677</attachid>
            <date>2019-12-02 18:59:42 -0800</date>
            <delta_ts>2019-12-02 21:07:22 -0800</delta_ts>
            <desc>patch</desc>
            <filename>b-backup.diff</filename>
            <type>text/plain</type>
            <size>1698</size>
            <attacher name="Saam Barati">saam</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDI1MzAyMykKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDEyIEBACisyMDE5LTEyLTAyICBTYWFtIEJhcmF0aSAgPHNiYXJhdGlAYXBwbGUuY29tPgor
CisgICAgICAgIHJ1bi1qc2Mgc2hvdWxkIGV4aXQgd2l0aCB0aGUgc2FtZSBzaWduYWwgb3IgZXhp
dCBzdGF0dXMgdGhhdCB0aGUgYGpzY2Agc2hlbGwgZG9lcworICAgICAgICBodHRwczovL2J1Z3Mu
d2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MjA0Nzc4CisKKyAgICAgICAgUmV2aWV3ZWQgYnkg
Tk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgKiBTY3JpcHRzL3J1bi1qc2M6CisKIDIwMTktMTIt
MDIgIEFha2FzaCBKYWluICA8YWFrYXNoX2phaW5AYXBwbGUuY29tPgogCiAgICAgICAgIFJldmVy
dCAtIFtFV1NdIERvIG5vdCBy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ICAgIHN5c3RlbSgia2lsbCAtIiAuICRzaWdu
YWwgLiAiICIgLiAkUElEKTsgIyBXZSBraWxsIG91cnNlbHZlcyB3aXRoIHRoZSBzYW1lIHNpZ25h
bCB0aGF0IHRoZSBganNjYCBwcm9jZXNzIHdhcyBraWxsZWQgd2l0aCB0byBtYWtlIGl0IGxvb2sg
bGlrZSBganNjYCB3YXMgZGlyZWN0bHkgaW52b2tlZC4KKyAgICAgICAgcHJpbnQgU1RERVJSICJc
bi4uLiBJIHNob3VsZCBub3QgYmUgaGVyZSAuLi5cbiI7CisgICAgfQogICAgIGlmICgkc3RhdHVz
ICE9IDApIHsKICAgICAgICAgcHJpbnQgU1RERVJSICJcbmpzYyBleGl0ZWQgd2l0aCBub24temVy
byBzdGF0dXM6ICRzdGF0dXNcbiI7CiAgICAgICAgIGV4aXQgJHN0YXR1czsK
</data>

          </attachment>
      

    </bug>

</bugzilla>