frida 17.2.8 → 17.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -484,6 +484,10 @@ export const LogLevel = binding.LogLevel;
484
484
  if (cwd !== undefined) {
485
485
  options.cwd = cwd;
486
486
  }
487
+ const stdio = opts.stdio;
488
+ if (stdio !== undefined) {
489
+ options.stdio = stdio;
490
+ }
487
491
  options.aux = Object.fromEntries(Object.entries(opts).filter(([k, v]) => !STANDARD_SPAWN_OPTION_NAMES.has(k)));
488
492
  }
489
493
  const result = await this._spawn(program, options, cancellable);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "frida",
3
- "version": "17.2.8",
3
+ "version": "17.2.10",
4
4
  "authors": [
5
5
  "Frida Developers"
6
6
  ],
@@ -1742,16 +1742,12 @@ fdn_signal_closure_deliver (napi_env env,
1742
1742
  FdnSignalClosureMessageDestroy * d = &message->payload.destroy;
1743
1743
  napi_value js_sig;
1744
1744
  FdnSignal * sig;
1745
- FdnSignalBehavior behavior;
1746
1745
 
1747
1746
  napi_get_reference_value (env, d->js_sig, &js_sig);
1748
1747
  napi_unwrap (env, js_sig, (void **) &sig);
1749
- behavior = sig->behavior;
1750
1748
 
1751
1749
  napi_delete_reference (env, d->handler);
1752
1750
  napi_delete_reference (env, d->js_sig);
1753
- if (behavior == FDN_SIGNAL_KEEP_ALIVE)
1754
- napi_unref_threadsafe_function (env, d->tsfn);
1755
1751
  napi_release_threadsafe_function (d->tsfn, napi_tsfn_abort);
1756
1752
 
1757
1753
  break;
@@ -1814,7 +1810,7 @@ fdn_keep_alive_until (napi_env env,
1814
1810
  context->handle = g_object_ref (handle);
1815
1811
  context->signal_handler_id = 0;
1816
1812
 
1817
- napi_ref_threadsafe_function (env, fdn_keep_alive_tsfn);
1813
+ napi_create_threadsafe_function (env, NULL, NULL, fdn_utf8_to_value (env, "FridaKeepAlive"), 0, 1, NULL, NULL, context, fdn_keep_alive_on_tsfn_invoke, &context->tsfn);
1818
1814
 
1819
1815
  napi_add_finalizer (env, js_object, context, fdn_keep_alive_on_finalize, NULL, NULL);
1820
1816
 
@@ -1863,7 +1859,7 @@ fdn_keep_alive_schedule_cleanup (FdnKeepAliveContext * context)
1863
1859
  if (fdn_in_cleanup)
1864
1860
  return;
1865
1861
 
1866
- napi_call_threadsafe_function (fdn_keep_alive_tsfn, context, napi_tsfn_blocking);
1862
+ napi_call_threadsafe_function (context->tsfn, NULL, napi_tsfn_blocking);
1867
1863
  }
1868
1864
 
1869
1865
  static void
@@ -1872,7 +1868,7 @@ fdn_keep_alive_on_tsfn_invoke (napi_env env,
1872
1868
  void * context,
1873
1869
  void * data)
1874
1870
  {
1875
- FdnKeepAliveContext * ctx = data;
1871
+ FdnKeepAliveContext * ctx = context;
1876
1872
 
1877
1873
  if (ctx->signal_handler_id != 0)
1878
1874
  {
@@ -1882,7 +1878,8 @@ fdn_keep_alive_on_tsfn_invoke (napi_env env,
1882
1878
  g_object_unref (ctx->handle);
1883
1879
  ctx->handle = NULL;
1884
1880
 
1885
- napi_unref_threadsafe_function (env, fdn_keep_alive_tsfn);
1881
+ napi_release_threadsafe_function (ctx->tsfn, napi_tsfn_abort);
1882
+ ctx->tsfn = NULL;
1886
1883
  }
1887
1884
 
1888
1885
  if (g_atomic_int_dec_and_test (&ctx->ref_count))
@@ -52,6 +52,7 @@ typedef struct {
52
52
  guint ref_count;
53
53
  GObject * handle;
54
54
  gulong signal_handler_id;
55
+ napi_threadsafe_function tsfn;
55
56
  } FdnKeepAliveContext;
56
57
 
57
58
  typedef gboolean (* FdnIsDestroyedFunc) (GObject * handle);
@@ -388,6 +388,11 @@ if (opts !== undefined) {
388
388
  options.cwd = cwd;
389
389
  }
390
390
 
391
+ const stdio = opts.stdio;
392
+ if (stdio !== undefined) {
393
+ options.stdio = stdio;
394
+ }
395
+
391
396
  options.aux = Object.fromEntries(Object.entries(opts).filter(([k, v]) => !STANDARD_SPAWN_OPTION_NAMES.has(k)));
392
397
  }
393
398
  """,
@@ -1,6 +1,6 @@
1
1
  [wrap-git]
2
2
  url = https://github.com/frida/frida-core.git
3
- revision = 17.2.8
3
+ revision = 17.2.10
4
4
  depth = 1
5
5
 
6
6
  [provide]