From 5091e2598048d81e3913fbb66916b51df29c9b31 Mon Sep 17 00:00:00 2001 From: Fulup Ar Foll Date: Wed, 1 Nov 2017 21:16:57 +0100 Subject: Remove PS_SET, now should use afb-daemon --name option --- alsa-binding/Alsa-ApiHat.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'alsa-binding/Alsa-ApiHat.c') diff --git a/alsa-binding/Alsa-ApiHat.c b/alsa-binding/Alsa-ApiHat.c index 6f27c84..14ab903 100644 --- a/alsa-binding/Alsa-ApiHat.c +++ b/alsa-binding/Alsa-ApiHat.c @@ -35,13 +35,6 @@ STATIC void pingtest(struct afb_req request) { afb_req_success(request, query, NULL); } -STATIC int AlsaInit(void) { - int rc= prctl(PR_SET_NAME, "afb-aaaa-agent",NULL,NULL,NULL); - if (rc) AFB_ERROR("ERROR: AlsaCore fail to rename process"); - - return rc; -} - /* * array of the verbs exported to afb-daemon */ @@ -70,5 +63,4 @@ static const struct afb_verb_v2 api_verbs[] = { const afb_binding_v2 afbBindingV2 = { .api = "alsacore", .verbs = api_verbs, - .preinit = AlsaInit, }; -- cgit 1.2.3-korg